/* 头部 */
<template>
  <div class="header">
    <Row>
      <Col span="4">
      <img src="../../../assets/images/logo.png" alt="" style="vertical-align:middle">
      </Col>
      <Col span="5" offset="15">
      <Row>
        <Col span="4">
        注销
        </Col>
        <Col span="20">
        <Dropdown style="margin-left: 20px" placement="bottom-end">
          <a href="javascript:void(0)">
            {{userName}}<Avatar style="margin:0 10px" src="https://i.loli.net/2017/08/21/599a521472424.jpg"></Avatar>
            <Icon type="ios-arrow-down"></Icon>
          </a>
          <DropdownMenu slot="list">
            <DropdownItem>驴打滚</DropdownItem>
            <DropdownItem>炸酱面</DropdownItem>
            <DropdownItem>豆汁儿</DropdownItem>
            <DropdownItem>冰糖葫芦</DropdownItem>
            <DropdownItem>北京烤鸭</DropdownItem>
          </DropdownMenu>
        </Dropdown>
        </Col>
      </Row>
      </Col>
    </Row>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        userName: '',
      }
    },
    mounted() {
      this.getUser()
    },
    methods: {
      getUser() {
        axios.post("/member/findOne").then((res) => {
          console.log(res.member)
          this.userName = res.member.userName;
        }).catch((err) => {
          console.log(err)
        })
      }
    },

  };
</script>

<style scoped lang="less">

</style>